package com.exigenservices.practice.roadcompanion.server.service;

public interface ServiceInterface {
    DUser getUser(long userId) throws Exception;

    DUser getUserByLogin(String login) throws Exception;

    DUser createUser(String login, String password) throws Exception;

    boolean saveUser(DUser dUser) throws Exception;

    boolean deleteUser(DUser dUser);

    boolean deleteRoute(DUser dUser, DRoute dRoute) throws Exception;

    boolean deletePoint(DRoute route, DPoint point);

    DRoute createRoute(DUser user) throws Exception;

    DPoint createPoint(DRoute route) throws Exception;
}
